package com.cssl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.Data;

/**
 * 商品订单详情表
 * @TableName product_details
 */
@TableName(value ="product_details")
@Data
public class ProductDetails implements Serializable {
    /**
     * 商品详情id
     */
    @TableId
    private String pd_id;

    /**
     * 商品订单id
     */
    private String po_id;

    /**
     * 商品id
     */
    private Integer product_id;

    /**
     * 购买的商品数量
     */
    private Integer quantity;

    public ProductDetails() {
    }

    public ProductDetails(String po_id, Integer product_id, Integer quantity) {
        this.po_id = po_id;
        this.product_id = product_id;
        this.quantity = quantity;
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}